package com.example.model;

import java.util.HashMap;
import java.util.Map;

public class BasicProfile extends OutResult {
 @Override
public String toString() {
	return "BasicProfile [status=" + status + ", id=" + id + ", username="
			+ username + ", firtname=" + firtname + ", lastName=" + lastName
			+ ", fullName=" + fullName + ", email=" + email + ", isActive="
			+ isActive + ", properties=" + properties + ", activeCode="
			+ activeCode + "]";
}
/**
  * id
username
first_name
last_name
full_name
email
is_active
properties
active_code
  */
	public static final String STATUS = "status";
	private boolean status = false;
	protected String id;
	protected String username;
	protected String firtname;
	protected String lastName;
	protected String fullName;
	protected String email;
	protected String isActive;
	protected Map<String,String> properties = new HashMap<String, String>();
	protected String activeCode;
	
	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}
	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	public String getFirtname() {
		return firtname;
	}
	public void setFirtname(String firtname) {
		this.firtname = firtname;
	}
	/**
	 * @return the lastName
	 */
	public String getLastName() {
		return lastName;
	}
	/**
	 * @param lastName the lastName to set
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	/**
	 * @return the fullName
	 */
	public String getFullName() {
		return fullName;
	}
	/**
	 * @param fullName the fullName to set
	 */
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	/**
	 * @return the email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return the isActive
	 */
	public String getIsActive() {
		return isActive;
	}
	/**
	 * @param isActive the isActive to set
	 */
	public void setIsActive(String isActive) {
		this.isActive = isActive;
	}
	/**
	 * @return the properties
	 */
	public Map<String, String> getProperties() {
		return properties;
	}
	/**
	 * @param properties the properties to set
	 */
	public void setProperties(Map<String, String> properties) {
		this.properties = properties;
	}
	/**
	 * @return the activeCode
	 */
	public String getActiveCode() {
		return activeCode;
	}
	/**
	 * @param activeCode the activeCode to set
	 */
	public void setActiveCode(String activeCode) {
		this.activeCode = activeCode;
	}
	
	public boolean getStatus(){
		return status;
	}
	public void setStatus(boolean status) {
		this.status = status;
	}
	public void setStatus(String status){
		if(status.equalsIgnoreCase("true")){
			this.status  = true;
		}else{
			this.status  = false;
		}
	}
}
